package org.colin.controller;

//import io.github.swagger2markup.GroupBy;
//import io.github.swagger2markup.Language;
//import io.github.swagger2markup.Swagger2MarkupConfig;
//import io.github.swagger2markup.Swagger2MarkupConverter;
//import io.github.swagger2markup.builder.Swagger2MarkupConfigBuilder;
//import io.github.swagger2markup.markup.builder.MarkupLanguage;
//import org.junit.jupiter.api.Test;

import java.net.URL;
import java.nio.file.Paths;

public class tt {

//    @Test
    void name()throws Exception  {
//        //    输出Ascii格式
//        Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder()
//                .withMarkupLanguage(MarkupLanguage.ASCIIDOC)
//                .withOutputLanguage(Language.ZH)
//                .withPathsGroupedBy(GroupBy.TAGS)
//                .withGeneratedExamples()
//                .withoutInlineSchema()
//                .build();
//        //此处地址务必改为本机地址
//        Swagger2MarkupConverter.from(new URL("http://localhost:8000/v2/api-docs"))
//                .withConfig(config)
//                .build()
//                .toFolder(Paths.get("src/docs/asciidoc/generated/all"));
    }

//    @Test
    void generateAsciiDocs() throws Exception {

    }

    public static void  main(String [] args)  throws Exception{
//        //    输出Ascii格式
//        Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder()
//                .withMarkupLanguage(MarkupLanguage.ASCIIDOC)
//                .withOutputLanguage(Language.ZH)
//                .withPathsGroupedBy(GroupBy.TAGS)
//                .withGeneratedExamples()
//                .withoutInlineSchema()
//                .build();
//        //此处地址务必改为本机地址
//        Swagger2MarkupConverter.from(new URL("http://localhost:8000/v2/api-docs"))
//                .withConfig(config)
//                .build()
//                .toFolder(Paths.get("src/docs/asciidoc/generated/all"));
//
   }
}
